package _2025_4_14;

import java.io.File;
import java.io.IOException;

public class Pathdemo1 {
        public static void main(String[] args) throws IOException {
            File file = new File("hello-world.txt"); // 要求该⽂件不存在，才能看到
            System.out.println(file.exists());
            System.out.println(file.isDirectory());
            System.out.println(file.isFile());
            System.out.println(file.createNewFile());
            System.out.println(file.exists());
            System.out.println(file.isDirectory());
            System.out.println(file.isFile());
            System.out.println(file.createNewFile());
        }
}
